package cn.lyvust.work01;

public class TestShape {
    public static void main(String[] args) {
        Shape square = new Square(3);
        Shape circle = new Circle(2);
        System.out.println("正方形的面积:" + square.getArea());
        System.out.println("圆形的面积:" + circle.getArea());
//        Square sq = (Square) circle;
//        System.out.println(sq.getArea());
    }
}
